package org.viva.service.wx.mp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.viva.core.dao.BaseDAO;
import org.viva.entity.wx.WxEditTemplateType;

@Service(value = "wxEditTemplateService")
public class WxEditTemplateService {

    @Resource
    private BaseDAO<?> dao;

    @SuppressWarnings("unchecked")
    public List<WxEditTemplateType> getTypes() {
        return (List<WxEditTemplateType>) dao.find("from WxEditTemplateType order by sort");
    }

}
